/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86136
 * Date: 2024-10-08
 * Time: 22:09
 */
public class Test {
    public static void main(String[] args) {
        int[] array = {27,15,19,18,28,34,65,49,25,37};
        TestHeap testHeap = new TestHeap();
        testHeap.initElem(array);
        testHeap.createHeap();
        /*for (int i = 0; i < array.length; i++) {
            testHeap.offer(array[i]);
        }*/
        testHeap.offer(51);
        int ret = testHeap.poll();
        System.out.println(ret);
        testHeap.heapSort();
    }
}
